package robocup.component.infotypes;

import robocup.component.ControllerNumbers.TEAM;

/**
 * This class is an extension of the CoachSayInfo, which is received for clang
 * messages. Here, the team of the sender is added for identifying the messages
 * that are important.
 */
public class OLCoachSayInfo
    extends CoachSayInfo {

  /**
   * The team of the sender. Either TEAM.WE or TEAM.OPPONENT.
   */
  private TEAM side;

  /**
   * Constructs an extension to the CoachSayInfo, which holds for instance CLANG
   * Messages. Here, a team is added
   * 
   * @param iCycle -
   *          the time of the message
   */
  public OLCoachSayInfo(
      final int iCycle) {

    super(iCycle);
  }

  /**
   * set the side from which a coach said something
   * 
   * @param side
   *          the side of the coach who said this.
   */
  public void setSide(final TEAM side) {

    this.side = side;
  }

  /**
   * @return the side of the coach who said this.
   */
  public TEAM getSide() {

    return this.side;
  }

}
